<li>
{foreach from=$tree key=key item=item}
{if $key == 'info'}
<span class="folder"><a href="#" onclick="return false;">{$item->name}</a></span>
{elseif $key == 'childs'}
    <ul>
    {foreach from=$item item=item2}
        {include file="code/tree.tpl" tree=$item2}
    {/foreach}
    </ul>
{/if}
{/foreach}
</li>
